package com.java46.front.dessert.action;


import com.java46.front.base.action.BaseAction;
import com.java46.front.dessert.entity.TestEntity;
import com.java46.front.dessert.service.DessertService;
import com.java46.front.dessertType.entity.DesserttypeEntity;
import org.apache.struts2.convention.annotation.Action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class DessertAction extends BaseAction {
    //获取dessertService对象
    private DessertService dessertService= new DessertService();
    //
    @Action(value = "dessertByDessertType")
    public String dessertByDessertType(){
        List<TestEntity> resultList = dessertService.query_Dessert();
        setSuccesResult(resultList);

        return "json";
    }

}
